<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('lock_lists')}">我的客户</a></li>
			<li class="active"><a href="{:url('done_sq')}">成交审核</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('lock_lists')}">
			类别:
			<select class="form-control" name="category" style="width: 120px;">
				<option value='0'>全部</option>
				<volist name="cate" id="vo">
					<option value="{$vo.id}" <eq name="vo.id" value="$where_r.category|default=0">selected</eq> >{$vo.name}</option>
				</volist>
			</select> &nbsp;
			来源:
			<select class="form-control" name="source" style="width: 80px;">
				<option value='0'>全部</option>
				<volist name="source" id="vo">
					<option value="{$vo.id}" <eq name="vo.id" value="$where_r.source|default=0">selected</eq> >{$vo.name}</option>
				</volist>
			</select> &nbsp;
			状态:
			<select class="form-control" name="is_done" style="width: 80px;">
				<option value='0'>全部</option>
				<option value='1' <eq name="where_r.is_done|default=0" value="1">selected</eq> >未成交</option>
				<option value='2' <eq name="where_r.is_done|default=0" value="2">selected</eq> >已成交</option>
			</select> &nbsp;
			时间:
			<input type="text" class="form-control js-bootstrap-date" name="start_time"
				   value="{$where_r.start_time|default=''}"
				   style="width: 80px;" autocomplete="off">-
			<input type="text" class="form-control js-bootstrap-date" name="end_time"
				   value="{$where_r.end_time|default=''}"
				   style="width: 80px;" autocomplete="off"> &nbsp;
			<input type="text" class="form-control" name="keyword" style="width: 150px;"
				   value="{$where_r.keyword|default=''}" placeholder="请输入关键字...">
			未跟进天数:
			<input type="number" class="form-control" name="day" style="width: 60px;"
				   value="{$where_r.day|default=''}">
			<input type="submit" class="btn btn-primary" value="搜索"/>
			<a class="btn btn-danger" href="{:url('lock_lists')}">清空</a>
		</form>

		<form class="js-ajax-form" action="" method="post">
		<table class="table table-hover table-bordered margin-top-20">
			<thead>
				<tr>
					<th>客户名称</th>
					<th>创建日期</th>
					<th>联系方式</th>
					<th>需求产品类别</th>
					<th width="300">跟进信息</th>
					<th>状态</th>
					<th>锁定人员</th>
					<th>锁定状态</th>
					<th width="130">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="lists" item="vo">
				<tr>
					<td>{$vo.name}</td>
					<td>{$vo.createtime|date="Y-m-d",###}</td>
					<td>{$vo.phone}</td>
					<td>{$vo.cname}</td>
					<td>{$vo.evolve}</td>
					<th>{$vo.is_done?'已成交':'未成交'}</th>
					<td>{$vo.user_nickname}</td>
					<th>{$vo.unlock?'解锁中':'锁定'}</th>
					<td>
						<a href="{:url('done_cl',['id' => $vo['id'],'type'=>1])}" class="js-ajax-dialog-btn" data-msg="是否成交该订单？">通过</a>
						<a href="{:url('done_cl',['id' => $vo['id']])}" class="js-ajax-dialog-btn" data-msg="是否取消成交该订单？">不通过</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}<li><a>共计 {$lists->total()} 条</a></li></div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>